import Vue from 'vue'
import App from './App.vue' // 路由挂载
import router from './router' // 路由列表
import Element from 'element-ui' // Element 
import 'element-ui/lib/theme-chalk/index.css' // 引入樣式
import Request from './utils/request.js'; // 使用axios
Vue.prototype.$request = Request;


import {
  mockXHR
} from '../mock'
if (process.env.NODE_ENV === 'production') {
  // mockXHR()
}

Vue.config.productionTip = false


Vue.use(Element)

new Vue({
  render: h => h(App),
  router,
}).$mount('#app')